/*
 * @Description:
 * @Author: Dxcr
 * @Date: 2023-08-08 08:53:36
 * @LastEditTime: 2025-04-03 15:47:53
 * @LastEditors: Dxcr
 */
import { createRouter, createWebHistory } from "vue-router";

// 公共路由
export const constantRoutes = [
  {
    path: "/",
    name: "/",
    redirect:'/index'
  },
  {
    path: "/index",
    name: "index",
    component: () => import("../views/index.vue"),
  },
  {
    path: "/login",
    name: "login",
    component: () => import("../views/login/index.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: constantRoutes
});

export default router;
